<template>
  <div class="home">
    <van-swipe :autoplay="3000" class="demo-swipe">
      <van-swipe-item>1</van-swipe-item>
      <van-swipe-item>2</van-swipe-item>
      <van-swipe-item>3</van-swipe-item>
      <van-swipe-item>4</van-swipe-item>
    </van-swipe>

    <!-- <section class="demo-icon">
      <div class="van-col van-col--8">
        <i class="van-icon van-icon-add-o"> </i>
        <span>add-o</span>
      </div>
      <div class="van-col van-col--8">
        <i class="van-icon van-icon-add-o"> </i>
        <span>add-o</span>
      </div>
      <div class="van-col van-col--8">
        <i class="van-icon van-icon-add-o"> </i>
        <span>add-o</span>
      </div>
    </section> -->
  </div>
</template>

<script>
export default {
  data: () => ({})
};
</script>

<style  scoped>
.demo-swipe {
  padding-bottom: 30px;
}
.demo-swipe .van-swipe {
  cursor: pointer;
}
.demo-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 150px;
}
.demo-swipe .van-swipe-item:nth-child(even) {
  background-color: #39a9ed;
}
.demo-swipe .van-swipe-item:nth-child(odd) {
  background-color: #66c6f2;
}
.demo-swipe .van-swipe img {
  width: 100%;
  height: 240px;
  display: block;
  padding: 30px 60px;
  box-sizing: border-box;
  background-color: #fff;
  pointer-events: none;
}
.demo-swipe--vertical {
  height: 200px;
}
.demo-swipe--vertical .van-swipe-item {
  line-height: 200px;
}

.demo-icon {
  font-size: 0;
}
.demo-icon .van-col {
  text-align: center;
  height: 100px;
  float: none;
  display: inline-block;
  vertical-align: middle;
}
.demo-icon .van-icon {
  display: block;
  font-size: 32px;
  margin: 15px 0;
  color: rgba(69, 90, 100, 0.8);
}
.demo-icon span {
  font-size: 14px;
}
</style>